﻿using System;
using Ext.Net.MVC;
using Sharp.Platform;
using Sharp.Platform.List;
using Sharp.Platform.Other;
using Column = Ext.Net.MVC.ColumnAttribute;
using DateColumn = Ext.Net.MVC.DateColumnAttribute;
namespace Sharp.Web.Models
{
    [Title("消息管理")]
    [DataHandler(ModuleOP.Details, "浏览", 0)]
    [DataHandler(ModuleOP.Create, "新增", 1)]
    [DataHandler(ModuleOP.Edit, "修改", 2)]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    public partial class MessageIndexModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column(Hidden = true)]
        public Guid Id { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [Column(Width = 200, Text = "名称", Locked = true)]
        public string Title { get; set; }
       
        /// <summary>
        /// 缩略图
        /// </summary>
        [Column(Width = 100, Text = "缩略图")]
        public string Img { get; set; }
     

        /// <summary>
        /// 发布时间
        /// </summary>
        [DateColumn(Width = 140, Text = "发布时间", Format = "yyyy-MM-dd HH:mm:ss")]
        public DateTime PublishTime { get; set; }
        /// <summary>
        /// 提前提醒
        /// </summary>
        [DateColumn(Width = 140, Text = "提前提醒", Format = "yyyy-MM-dd HH:mm:ss")]
        public DateTime? RemindTime { get; set; }
        


      
    }
    public partial class MessageIndexModel : SharpList
    {
        public MessageIndexModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging | ListFeature.RowNumber;

        }
    }
}
